package com.bbcare.followup.plat.vo;

import org.apache.commons.lang.StringUtils;

/**
 * 体检评价规则。
 */
public class ExamRuleVo {
    private String id;
    private String projectId;
    private String gender;
    private Integer ageLow;
    private Integer ageHigh;
    private String symbol;
    private String valueLow;
    private String valueHigh;
    private String evaluateId;
    private String evaluateValue;
    private String evaluateElseValue;
    private String guideId;
    private String guideValue;
    private String guideElseValue;

    public ExamRuleVo(final String id, final String projectId, final String gender, final Integer ageL, final Integer ageH, final String symbol,
                      final String valueL, final String valueH, final String evaluateId, final String evaluateValue, final String evaluateElseV) {
        this.id = id;
        this.projectId  = projectId;
        this.gender = gender;
        this.ageLow = ageL;
        this.ageHigh= ageH;
        this.symbol = symbol;
        this.valueLow   = valueL;
        this.valueHigh  = valueH;
        this.evaluateId = evaluateId;
        this.evaluateValue  = evaluateValue;
        this.evaluateElseValue  = evaluateElseV;
    }
    public ExamRuleVo(final String id, final String projectId, final String gender, final Integer ageL, final Integer ageH, final String symbol,
                      final String valueL, final String valueH, final String evaluateId, final String evaluateValue) {
        this.id = id;
        this.projectId  = projectId;
        this.gender = gender;
        this.ageLow = ageL;
        this.ageHigh= ageH;
        this.symbol = symbol;
        this.valueLow   = valueL;
        this.valueHigh  = valueH;
        this.evaluateId = evaluateId;
        this.evaluateValue  = evaluateValue;
    }

    public String getProjectId()    {return this.projectId;}
    public String getGender()   {return this.gender;}
    public Integer getAgeLow()  {return this.ageLow;}
    public Integer getAgeHigh() {return this.ageHigh;}
    public String getSymbol()   {return this.symbol;}
    public String getValueLow() {return this.valueLow;}
    public String getValueHigh(){return this.valueHigh;}
    public String getEvaluateId()   {return this.evaluateId;}
    public String getEvaluateValue(){return this.evaluateValue;}
    public String getEvaluateElseValue()    {return this.evaluateElseValue;}

    public void setGuideElseValue(final String guide) {this.guideElseValue=guide;}
    public String getGuideElseValue()   {
        if (StringUtils.isNotBlank(this.guideElseValue))    {
            return this.guideElseValue;
        } else {
            return "";
        }
    }
    public String getGuideValue()   {
        if (StringUtils.isNotBlank(this.guideValue))    {
            return this.guideValue;
        } else {
            return "";
        }
    }
}
